//
//  SuperTableViewCell.m
//  艾听歌
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SuperTableViewCell.h"

@implementation SuperTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.namelabel = [[UILabel alloc] init];
//        self.namelabel.backgroundColor = [UIColor yellowColor];
        self.namelabel.font = [UIFont systemFontOfSize:18];
        [self.contentView addSubview:self.namelabel];
    }
    return self;
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    self.namelabel.frame = CGRectMake(10, 10, WIDTH / 2, 30);
    
}

- (void)setCellModel:(SmallModel *)cellModel{
    
    _cellModel = cellModel;
    
    self.namelabel.text = _cellModel.itemName;
    
}


@end
